package demo1;

public class java1 {
	public static void main(String[] agrs){
		System.out.println(getMax(2,3,4));
	}
	public static int getMax(int a,int b,int c){
		int maxnum=a;
		if(maxnum<b){
			maxnum=b;
		}if(maxnum<c){
			maxnum=c;
		}
		
		return maxnum;
	}
}
